<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view>
	<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<meta http-equiv="pragma" content="no-cache" />
			<meta http-equiv="cache-control" content="no-cache" />
			<meta http-equiv="expires" content="0" />
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<title>CDM版权管理系统——用户注册</title>
			<link href="../css/register.css" rel="stylesheet" type="text/css" />
		</head>
	<body>
		<div id="container">
			<h:form>
				<h:messages />
				<dl>
					<dt>登录名:</dt><dd> <h:inputText value="#{$.user.loginName}" required="true" /></dd>
					<dt>电子邮件:</dt><dd> <h:inputText size="" value="#{$.user.email}" required="true" /></dd>
					<dt>用户名:</dt><dd> <h:inputText  value="#{$.user.userName}" required="true" /></dd>
					<dt>密　码:</dt><dd> <h:inputText size="" value="#{$.user.password}" required="true" /></dd>
					<dt>角色:</dt><dd> 
								<h:selectOneMenu required="true"  value="#{$.user.userRole}" requiredMessage="you are required">
									<f:selectItem value="#{$.roleList}" />
								</h:selectOneMenu></dd>
					<dt>联系电话:</dt><dd> <h:inputText size="" value="#{$.user.phone}" required="true" /></dd>
				</dl>
				<div>
					<h:commandButton value="#{$bundle.label_apply_register_submit}" actionListener="#{$.applyRegister}" action="r:/user/userHome" styleClass="button"/>
				</div>
			</h:form>
		</div>
	</body>
</html>
</f:view>
		

